import request from '@/utils/request'

export function showBulletinList(query) {
  return request({
    url: '/bulletin/show',
    method: 'get',
    params: query
  })
}

export function deleteBulletin(bulletinId) {
  return request({
    url: '/bulletin/remove',
    method: 'get',
    params: { 'bulletinId': bulletinId }
  })
}

export function saveBulletin(data) {
  return request({
    url: '/bulletin/save',
    method: 'post',
    data
  })
}

export function updateRank(data) {
  return request({
    url: '/bulletin/rank',
    method: 'post',
    data
  })
}

export function getBulletin(query) {
  return request({
    url: '/bulletin/get',
    method: 'get',
    params: query
  })
}

